package gx.dao.impl.common;

import java.util.List;

import org.springframework.stereotype.Repository;

import gx.dao.ManagerDao;
import gx.dao.impl.common.BaseDaoImpl;
import gx.entity.Manager;

@Repository
public class ManagerDaoImpl extends BaseDaoImpl<Manager> implements ManagerDao {

	@Override
	public List<Manager> findByName(String name) {
		return find("from Manager where lname like?","%"+name+"%");
	}

	@Override
	public Manager findLogin(String name) {
		return findUniqueResult("from Manager where lname=?", name);
	}

}
